home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8117 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newsfeeds.ans.net!interaccess!thymaster!andy
  2. From: andy@thymaster.interaccess.com (Andy Faibishenko)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Class variables in C++
  5. Date: 14 Feb 1996 22:06:48 GMT
  6. Organization: InterAccess, Chicago's best Internet Service Provider
  7. Distribution: inet
  8. Message-ID: <4ftmdo$ere@nntp.interaccess.com>
  9. References: <1996Feb14.165316@eigb> <4ft8nn$hde@philabs.research.philips.com>
  10. Reply-To: andy@interaccess.com
  11. NNTP-Posting-Host: thymaster.interaccess.com
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Andrew Feldman (abf@philabs.research.philips.com) wrote:
  15. : On Wed, 14 Feb 1996 16:53:16 GMT, you wrote:
  16.  
  17. : >Hi,
  18.  
  19. : >Is it possible to create a class variable (or constant) in C++ ?
  20. [Example Deleted]
  21.  
  22. : >                                               Laurent Guinnard
  23. : >                                               guinnard@eig.unige.ch
  24.  
  25.  
  26. : Use virtual functions.
  27.  
  28.  
  29. Another solution is to use static members/methods.  Many people feel that
  30. this is the C++ implementation of class members/methods.
  31.  
  32. Andy Faibishenko
  33. Metamor Technologies, Ltd.
  34. faibisa@metamor.com
  35.  
  36.  
  37.